package com.infore.qualityControl.po;

import java.io.Serializable;
import javax.persistence.*;

import org.hibernate.annotations.GenericGenerator;
import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

/**
 * 零点漂移
 * @author Cold
 *
 */
@Entity
@Table(name="ZERO_DRIFT")
@NamedQuery(name="ZeroDrift.findAll", query="SELECT z FROM ZeroDrift z")
public class ZeroDrift implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="ID")
	@GeneratedValue(generator = "uuidGenerator")
	@GenericGenerator(name = "uuidGenerator", strategy = "uuid") // UUID生成策略
	private String id;
	
	/** 绝对误差 **/
	@Column(name="ABSOLUTE_ERROR")
	private String absoluteError;
	
	/** 指标编码 **/
	@Column(name="INDEX_CODE")
	private String indexCode;
	
	/** 指标名称 **/
	@Column(name="INDEX_NAME")
	private String indexName;
	
	/** 指标单位 **/
	@Column(name="INDEX_UNIT")
	private String indexUnit;
	
	/** 前24小时测定值 **/
	@Column(name="LAST_VALUE")
	private String lastValue;
	
	/** 合格情况 **/
	@Column(name="QUALIFICATION")
	private String qualification;
	
	/** 相对误差 **/
	@Column(name="RELATIVE_ERROR")
	private String relativeError;
	
	/** 跨度值 **/
	@Column(name="SPAN_VALUE")
	private String spanValue;
	
	/** 标样值 **/
	@Column(name="STANDARD_SAMPLES_VALUE")
	private String standardSamplesValue;
	
	/** 测试时间 **/
	@Temporal(TemporalType.TIMESTAMP)
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@Column(name="TIME")
	private Date time;
	
	/** 测定值 **/
	@Column(name="VALUE")
	private String value;
	
	/** 前24小时合格情况 **/
	@Column(name="LAST_QUALIFICATION")
	private String lastQualification;
	
	/** 站点编码 **/
	@Column(name="STATION_CODE")
	private String stationCode;
	
	/** 站点名称 **/
	@Column(name="STATION_NAME")
	private String stationName;
	
	/** 流域编码 **/
	@Column(name="BASIN_CODE")
	private String basinCode;
	
	/** 流域名称 **/
	@Column(name="BASIN_NAME")
	private String basinName;
	
	/** 区域编码 **/
	@Column(name="AREA_CODE")
	private String areaCode;
	
	/** 区域名称 **/
	@Column(name="AREA_NAME")
	private String areaName;
	
	/** 运营编码 **/
	@Column(name="OPERATION_CODE")
	private String operationCode;
	
	/** 运营名称 **/
	@Column(name="OPERATION_NAME")
	private String operationName;
	
	/** 绝对误差技术标准 **/
	@Column(name="ABSOLUTE_TECHNICAL_REQUIREMENT")
	private String absoluteTechnicalRequirement;
	
	/** 相对误差技术标准 **/
	@Column(name="RELATIVE_TECHNICAL_REQUIREMENT")
	private String relativeTechnicalRequirement;
	
	/** 质控配置参数ID **/
	@Column(name="QUALITY_DISPOSE_ID")
	private String qualityDisposeId;

	public ZeroDrift() {
	}

	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getAbsoluteError() {
		return this.absoluteError;
	}

	public void setAbsoluteError(String absoluteError) {
		this.absoluteError = absoluteError;
	}

	public String getIndexCode() {
		return indexCode;
	}

	public void setIndexCode(String indexCode) {
		this.indexCode = indexCode;
	}

	public String getIndexName() {
		return this.indexName;
	}

	public void setIndexName(String indexName) {
		this.indexName = indexName;
	}

	public String getIndexUnit() {
		return this.indexUnit;
	}

	public void setIndexUnit(String indexUnit) {
		this.indexUnit = indexUnit;
	}

	public String getLastValue() {
		return this.lastValue;
	}

	public void setLastValue(String lastValue) {
		this.lastValue = lastValue;
	}

	public String getQualification() {
		return this.qualification;
	}

	public void setQualification(String qualification) {
		this.qualification = qualification;
	}

	public String getRelativeError() {
		return this.relativeError;
	}

	public void setRelativeError(String relativeError) {
		this.relativeError = relativeError;
	}

	public String getSpanValue() {
		return this.spanValue;
	}

	public void setSpanValue(String spanValue) {
		this.spanValue = spanValue;
	}

	public String getStandardSamplesValue() {
		return this.standardSamplesValue;
	}

	public void setStandardSamplesValue(String standardSamplesValue) {
		this.standardSamplesValue = standardSamplesValue;
	}

	public Date getTime() {
		return this.time;
	}

	public void setTime(Date time) {
		this.time = time;
	}

	public String getValue() {
		return this.value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	public String getLastQualification() {
		return lastQualification;
	}

	public void setLastQualification(String lastQualification) {
		this.lastQualification = lastQualification;
	}

	public String getStationCode() {
		return stationCode;
	}

	public void setStationCode(String stationCode) {
		this.stationCode = stationCode;
	}

	public String getStationName() {
		return stationName;
	}

	public void setStationName(String stationName) {
		this.stationName = stationName;
	}

	public String getBasinCode() {
		return basinCode;
	}

	public void setBasinCode(String basinCode) {
		this.basinCode = basinCode;
	}

	public String getBasinName() {
		return basinName;
	}

	public void setBasinName(String basinName) {
		this.basinName = basinName;
	}

	public String getAreaCode() {
		return areaCode;
	}

	public void setAreaCode(String areaCode) {
		this.areaCode = areaCode;
	}

	public String getAreaName() {
		return areaName;
	}

	public void setAreaName(String areaName) {
		this.areaName = areaName;
	}
	
	public String getOperationCode() {
		return operationCode;
	}

	public void setOperationCode(String operationCode) {
		this.operationCode = operationCode;
	}

	public String getOperationName() {
		return operationName;
	}

	public void setOperationName(String operationName) {
		this.operationName = operationName;
	}

	public String getAbsoluteTechnicalRequirement() {
		return absoluteTechnicalRequirement;
	}

	public void setAbsoluteTechnicalRequirement(String absoluteTechnicalRequirement) {
		this.absoluteTechnicalRequirement = absoluteTechnicalRequirement;
	}

	public String getRelativeTechnicalRequirement() {
		return relativeTechnicalRequirement;
	}

	public void setRelativeTechnicalRequirement(String relativeTechnicalRequirement) {
		this.relativeTechnicalRequirement = relativeTechnicalRequirement;
	}

	public String getQualityDisposeId() {
		return qualityDisposeId;
	}

	public void setQualityDisposeId(String qualityDisposeId) {
		this.qualityDisposeId = qualityDisposeId;
	}
	
}